package com.ruoyi.restaurant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品管理对象 tb_food
 * 
 * @author Ding
 * @date 2023-11-09
 */
public class TbFood extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 菜名 */
    @Excel(name = "菜名")
    private String foodName;

    /** 菜品类型id */
    @Excel(name = "菜品类型id")
    private Long foodtypeId;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 折扣 */
    @Excel(name = "折扣")
    private Long discount;

    /** 菜品图片 */
    @Excel(name = "菜品图片")
    private String img;

    /** 菜品创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "菜品创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 菜品更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "菜品更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 0 未删 1已删 */
    @Excel(name = "0 未删 1已删")
    private Long disabled;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFoodName(String foodName) 
    {
        this.foodName = foodName;
    }

    public String getFoodName() 
    {
        return foodName;
    }
    public void setFoodtypeId(Long foodtypeId) 
    {
        this.foodtypeId = foodtypeId;
    }

    public Long getFoodtypeId() 
    {
        return foodtypeId;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setDiscount(Long discount) 
    {
        this.discount = discount;
    }

    public Long getDiscount() 
    {
        return discount;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDisabled(Long disabled) 
    {
        this.disabled = disabled;
    }

    public Long getDisabled() 
    {
        return disabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("foodName", getFoodName())
            .append("foodtypeId", getFoodtypeId())
            .append("price", getPrice())
            .append("discount", getDiscount())
            .append("remark", getRemark())
            .append("img", getImg())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .append("disabled", getDisabled())
            .toString();
    }
}
